package com.chunlin.exception;

public class Student implements Cloneable{

    private String name;
    private String gender;
    int age;

    // 想要让该类支持深拷贝，覆写Object类的clone方法即可
    //java: 未报告的异常错误java.lang.CloneNotSupportedException; 必须对其进行捕获或声明以便抛出
//    @Override
//    public Student clone(){
//        return (Student) super.clone();
//    }
}
